package cn.iocoder.yudao.module.wms.controller.admin.warehouse.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

@Schema(description = "管理后台 - 仓库新增/修改 Request VO")
@Data
public class WarehouseSaveReqVO {

    @Schema(description = "序号", requiredMode = Schema.RequiredMode.REQUIRED, example = "18777")
    private Long id;

    @Schema(description = "仓库名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "李四")
    @NotEmpty(message = "仓库名称不能为空")
    private String name;

    @Schema(description = "仓库编号", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "仓库编号不能为空")
    private String code;

    @Schema(description = "仓库类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
    @NotNull(message = "仓库类型不能为空")
    private Integer type;

    @Schema(description = "库位开关", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "库位开关不能为空")
    private Integer openPosition;

    @Schema(description = "负库存", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "负库存不能为空")
    private Integer openNegative;

    @Schema(description = "安全库存", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "安全库存不能为空")
    private Integer openSalf;

    @Schema(description = "补货点", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "补货点不能为空")
    private Integer openReorder;

    @Schema(description = "地址")
    private String address;

    @Schema(description = "状态", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @NotNull(message = "状态不能为空")
    private Integer status;

    @Schema(description = "显示顺序", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "显示顺序不能为空")
    private Integer sort;

    @Schema(description = "备注", example = "你猜")
    private String remark;

}